<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "{{%edu_admin_message}}".
 *
 * @property integer $message_id
 * @property integer $user_id
 * @property string $message_content
 * @property integer $message_type
 * @property integer $model_id
 * @property string $model
 * @property integer $message_status
 */
class AdminMessage extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%admin_message}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['user_id', 'message_type', 'model_id', 'message_status'], 'integer'],
            [['message_content'], 'string', 'max' => 50],
            [['model'], 'string', 'max' => 10]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'message_id' => 'Message ID',
            'user_id' => 'User ID',
            'message_content' => 'Message Content',
            'message_type' => 'Message Type',
            'model_id' => 'Model ID',
            'model' => 'Model',
            'message_status' => 'Message Status',
        ];
    }
}
